<template>
  <div class="container">
    <el-card class="box-card">
      <el-row :gutter="20"
              slot="header"
              class="clearfix">
        <el-col :span="16">
          <span>智能工厂数字化平台</span>
        </el-col>
        <el-button :span="4"
                   style="float: right; padding: 3px 0"
                   type="text">注册</el-button>
      </el-row>
      <div class="text item">
        <div class="margeTop">
          <el-input placeholder="请输入用户名"
                    v-model="user"
                    clearable></el-input>
        </div>

        <div class="margeTop">
          <el-input placeholder="请输入密码"
                    v-model="pwd"
                    show-password></el-input>
        </div>
      </div>
      <el-row :gutter="20">
        <el-col :span="12"
                :offset="6">
          <div class="grid-content bg-purple">
            <el-button type="primary"
                       @click="goto()">登录</el-button>
          </div>
        </el-col>
      </el-row>

    </el-card>
  </div>
</template>
<script>
export default {
  neme: 'LoginPage',
  data () {
    return {
      user: '',
      pwd: ''
    }
  },
  methods: {
    goto () {
      // this.$router.push({name: '/element-ui'})
      // 返回上一层
      this.$router.go(-1)
    }
  }
}
</script>
<style>
.container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-items: center;
}
.box-card {
  width: 320px;
  height: 320px;
}

.margeTop {
  margin-top: 10px;
}
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 5px;
}
</style>